﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WastedMechanics.CharState
{
    public abstract class CharStateFall : CharState
    {
        public CharStateFall(Character chr)
            : base(chr)
        {
        }

        public override void Update()
        {
            if (Character.IsOnGround)
                Character.SwitchState(GetIdleState());
        }

        public abstract CharState GetIdleState();
    }
}
